import ajax from '@/api/public'

export const getSaleList = (params) => {
  return ajax.fetchGet('/sale-ranking-by-expect', params)
}

export const getUserInfo = (params) => {
	return ajax.fetchGet('/employee-info', params)
}

export const getFollowList = (params) => {
	return ajax.fetchGet('/employee-follow-up-list', params)
}

export const getEmployee = (params) => {
	return ajax.fetchGet('/employee-card-count', params)
}

export const getCustomerList = (params) => {
	return ajax.fetchGet('/employee-expect-list', params)
}

export const getCustomerInfo = (params) => {
	return ajax.fetchGet('/account-base-info', params)
}

export const getCustomerChart = (params) => {
	return ajax.fetchGet('/account-data-analyze', params)
}

export const getLineChart = (params) => {
	return ajax.fetchGet('/account-active', params)
}
export const getAccountFollowList = (params) => {
	return ajax.fetchGet('/one-account-follow-up-list', params)
}

export const getAccountDetail = (params) => {
	return ajax.fetchGet('/account-info-details', params)
}

export const checkPublicLogin = (params) => {
	return ajax.fetchLogin('/login', params)
}
